package com.traffic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 节假日配置对象 per_holidays
 * 
 * @author 郭世纪
 * @date 2024-12-08
 */
public class PerHolidays extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 节假日名称 */
    @Excel(name = "节假日名称")
    private String name;

    /** 节假日日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "节假日日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 是否为公共假日（法定假期标识） */
    @Excel(name = "是否为公共假日", readConverterExp = "法=定假期标识")
    private Integer isPublicHoliday;

    /** 适用地区（如CN, US, ALL） */
    @Excel(name = "适用地区", readConverterExp = "如=CN,,U=S,,A=LL")
    private String region;

    /** 节假日类型（如法定节假日、地方节日） */
    @Excel(name = "节假日类型", readConverterExp = "如=法定节假日、地方节日")
    private String holidayType;

    /** 是否每年重复 */
    @Excel(name = "是否每年重复")
    private Integer isRecurring;

    /** 节假日描述或备注 */
    @Excel(name = "节假日描述或备注")
    private String description;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setIsPublicHoliday(Integer isPublicHoliday) 
    {
        this.isPublicHoliday = isPublicHoliday;
    }

    public Integer getIsPublicHoliday() 
    {
        return isPublicHoliday;
    }
    public void setRegion(String region) 
    {
        this.region = region;
    }

    public String getRegion() 
    {
        return region;
    }
    public void setHolidayType(String holidayType) 
    {
        this.holidayType = holidayType;
    }

    public String getHolidayType() 
    {
        return holidayType;
    }
    public void setIsRecurring(Integer isRecurring) 
    {
        this.isRecurring = isRecurring;
    }

    public Integer getIsRecurring() 
    {
        return isRecurring;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("date", getDate())
            .append("isPublicHoliday", getIsPublicHoliday())
            .append("region", getRegion())
            .append("holidayType", getHolidayType())
            .append("isRecurring", getIsRecurring())
            .append("description", getDescription())
            .append("creatTime", getCreatTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
